<?php include("config.php"); ?>
<?php include("header.php"); ?>
<?php include("sidebar.php"); ?>
<div class="main-content">
<div class="container-fluid">
<form class="form-auth-small" action="insert.php" method="post" enctype="multipart/form-data">
								<div class="form-group">
									<label for="signin-email" class="control-label sr-only">Email</label>
									<input type="file" class="form-control" id="banner" name="file_img[]" multiple>
								</div>
								<button type="submit" name="slider" class="btn btn-primary btn-lg btn-block">Add Slider</button>
								<div class="bottom">
									
								</div>
							</form>

</div>

<table class="table">
    <thead>
      <tr>
        <th>S.No</th>
        <th>Image</th>
		<th>Status</th>
        <th>Action</th>
		<th>Delete</th>
      </tr>
    </thead>
    <tbody>
	<?php $sql="select * from banner";
 $result = mysqli_query($conn, $sql);
 $i=0;
 while($row=mysqli_fetch_array($result)){ 
 $i++;?>
	 <tr>
        <td><?=$i;?></td>
        <td><img src="../<?=$row['path'];?>" class="img-responsive" width='100'/></td>
        <td><?=$row['status'];?></td>
		<td><?=$row['status'];?></td>
		<td>
		<form method="post" action="">
		<input type="text" name="id" value="<?=$row['id'];?>">
		<input type="submit" name="delete">
		</form>
		
      </tr>
 <?php }?>
      

    </tbody>
  </table>
<?php if(isset($_POST['delete'])){
	print_r($_POST);
} ?>
<?php include("footer.php"); ?>